package com.thingsgrid.resource.config;

import com.thingsgrid.resource.builder.OssBuilder;
import com.thingsgrid.resource.mapper.OssMapper;
import lombok.AllArgsConstructor;
import org.springblade.core.oss.props.OssProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Oss配置类
 *
 * @author Chill
 */
@Configuration
@AllArgsConstructor
public class BladeOssConfiguration {

	private OssProperties ossProperties;

	private OssMapper ossMapper;

	@Bean
	public OssBuilder ossBuilder() {
		return new OssBuilder(ossProperties, ossMapper);
	}

}
